package cn.yunhe.model;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;


public class Type implements Serializable {
    private Integer tid;
    private String tname;

    private Set<House>houseSet=new HashSet<>();

    public Type() {
    }

    public Type(String tname) {
        this.tname = tname;
    }

    public Type(Integer tid, String tname) {
        this.tid = tid;
        this.tname = tname;
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public Set<House> getHouseSet() {
        return houseSet;
    }

    public void setHouseSet(Set<House> houseSet) {
        this.houseSet = houseSet;
    }
}
